package com.example.employeemanagement.vo;

import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.sql.Date;
import java.sql.Time;

@Data
public class AttendanceVo {
    private int id;

    @NotNull(message = "员工ID不能为空")
    private int employeeId;
    
    @Size(max = 50, message = "员工名长度不能超过50个字符")
    private String firstName;
    
    @Size(max = 50, message = "员工姓长度不能超过50个字符")
    private String lastName;

    @NotNull(message = "考勤日期不能为空")
    private Date attendanceDate;

    @NotNull(message = "上班时间不能为空")
    private Time clockInTime;

    @NotNull(message = "下班时间不能为空")
    private Time clockOutTime;

    @NotNull(message = "考勤状态不能为空")
    private String status;

    private String remark;
}